import request from '@/utils/request'

// 查询列表
export function list(data) {
  return request({
    url: '/system/order/list',
    method: 'post',
    data: data
  })
}
export function detailslist(data) {
  return request({
    url: '/system/order/details/list',
    method: 'post',
    data: data
  })
}
export function logslist(data) {
  return request({
    url: '/system/produce/logs/list',
    method: 'post',
    data: data
  })
}
// 查询商品列表
export function goodslist(data) {
  return request({
    url: '/system/order/details/goods/list',
    method: 'post',
    data: data
  })
}
// 查询超时列表
export function timeOutlist(data) {
  return request({
    url: '/system/order/timeout/list',
    method: 'post',
    data: data
  })
}
// 查询售后列表
export function afterSalelist(data) {
  return request({
    url: '/system/order/after/sale/list',
    method: 'post',
    data: data
  })
}
export function afterSaleInfo(data) {
  return request({
    url: '/system/order/after/sale/info',
    method: 'post',
    data: data
  })
}
export function afterSaleEdit(data) {
  return request({
    url: '/system/order/after/sale/edit',
    method: 'post',
    data: data
  })
}
// 订单发货
export function orderDeliver(data) {
  return request({
    url: '/system/order/delivery',
    method: 'post',
    data: data
  })
}
// 订单取消
export function orderCancel(data) {
  return request({
    url: '/system/order/cancel',
    method: 'post',
    data: data
  })
}
// 订单变更
export function orderTypeEdit(data) {
  return request({
    url: '/system/order/type/edit',
    method: 'post',
    data: data
  })
}